# OpenStudio CMake configuration file

# If this file was found, then OpenStudio has been found
set(OpenStudioCore_FOUND 1)

# Get all directories relative to the location of OpenStudioConfig.cmake
get_filename_component(OpenStudioCore_INSTALL_PREFIX "${OpenStudioCore_DIR}" ABSOLUTE)

set(OpenStudioCore_VERSION_MAJOR "@PROJECT_VERSION_MAJOR@")
set(OpenStudioCore_VERSION_MINOR "@PROJECT_VERSION_MINOR@")
set(OpenStudioCore_VERSION_PATCH "@PROJECT_VERSION_PATCH@")
set(OpenStudioCore_VERSION "${OpenStudioCore_VERSION_MAJOR}.${OpenStudioCore_VERSION_MINOR}.${OpenStudioCore_VERSION_PATCH}")

set(OpenStudioCore_INCLUDE_DIRS "${OpenStudioCore_INSTALL_PREFIX}/../src"
                                "${OpenStudioCore_INSTALL_PREFIX}/../src/boost-log"
                                "@PROJECT_SOURCE_DIR@/src"
                                "@PROJECT_SOURCE_DIR@/src/boost-log"
                                "@PROJECT_SOURCE_DIR@/src/gtest/include"
                                "@PROJECT_BINARY_DIR@/src"
                                "@BoostLog_INCLUDE_DIRS@"
                                "@QJSON_INCLUDE_DIR@"
                                "@GTEST_INCLUDE_DIR@"
                                "@GEOGRAPHIC_INCLUDE_DIR@"
)
set(OpenStudioCore_LIBRARY_DIRS  "${OpenStudioCore_INSTALL_PREFIX}/Products" "@GTEST_LIB_DIR@" "@QJSON_LIBRARY_DIRS@")
set(OpenStudioCore_CMAKE_DIR "@PROJECT_SOURCE_DIR@")
set(OpenStudioCore_SWIG_INCLUDE_DIR "@PROJECT_SOURCE_DIR@/src")

# Only include the exported targets once
if(NOT TARGET openstudio_model)
  include("@TARGETS_FILE@")
endif()

set(OpenStudioCore_RUBY_MODULE_DIR "@RUBY_MODULE_DIR@")
set(OpenStudioCore_RUBY_MODULE_ARCH_DIR "@RUBY_MODULE_ARCH_DIR@")
set(OpenStudioCore_CMAKE_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
